package com.daedalus.Inheritanca.AdministrataDrejtor;

public class Administrata {

	private String emri;
	private String datelindja;
	private double paga;
	
	public Administrata(String em, String dtl, double pg){
		setEmri(em);
		setDatelindja(dtl);
		setPaga(pg);
	}
	public Administrata(String em, String dtl){
		this(em,dtl,0.0);
	}
	public Administrata(){
		this("I Panjohur","00/00/0000",0.0);
	}
	
	public void setEmri(String em){
		emri=em;
	}
	public void setDatelindja(String dtl){
		datelindja=dtl;
	}
	public void setPaga(double p){
		paga=p>0.0?p:0.0;
	}
	
	public String getEmri(){
		return emri;
	}
	public String getDatelindja(){
		return datelindja;
	}
	public double getPaga(){
		return paga;
	}
	public double getTeArdhurat(){
		return paga;
	}
	public String toString(){
		return String.format("%-15s  %-10s \nPaga: %.2f", getEmri(),getDatelindja(),getTeArdhurat());
	}
}
